package com.read.provider.dubboprovider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import read.servie.HelloService;

/**
 *
 *
 */
@Component
@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        if (name != null) {
            if (name.equals("")) {
                return "blank";
            }
        }

        System.out.println("name = " + name);
        return "Hello " + name;

    }
}
